﻿
# 指定CMake最小版本
cmake_minimum_required(VERSION 3.10.0)


# 定义工程名称
project(ImageGadget)


# 查找Qt库
find_package(QT NAMES Qt6 Qt5 COMPONENTS Core Widgets Sql LinguistTools REQUIRED)
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Widgets Sql LinguistTools REQUIRED)


# 头文件包含当前目录
set(CMAKE_INCLUDE_CURRENT_DIR ON)

# 库和可执行文件的输出目录
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)


add_subdirectory(src)